package com.neusoft.my12306.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author 葛彬
 * @since 2023-07-15
 */
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    @TableId(value = "userid", type = IdType.AUTO)
    private Integer userid;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 证件类型
     */
    private Integer idtype;

    /**
     * 姓名
     */
    private String name;

    /**
     * 身份证号
     */
    private String id;

    /**
     * 优惠类型
     */
    private Integer favortype;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 手机号类型
     */
    private Integer mobiletype;

    /**
     * 手机号
     */
    private String mobile;

    /**
     * 账户余额
     */
    private Double amount;

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getIdtype() {
        return idtype;
    }

    public void setIdtype(Integer idtype) {
        this.idtype = idtype;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getFavortype() {
        return favortype;
    }

    public void setFavortype(Integer favortype) {
        this.favortype = favortype;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getMobiletype() {
        return mobiletype;
    }

    public void setMobiletype(Integer mobiletype) {
        this.mobiletype = mobiletype;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    @Override
    public String toString() {
        return "User{" +
                "userid=" + userid +
                ", username=" + username +
                ", password=" + password +
                ", idtype=" + idtype +
                ", name=" + name +
                ", id=" + id +
                ", favortype=" + favortype +
                ", email=" + email +
                ", mobiletype=" + mobiletype +
                ", mobile=" + mobile +
                ", amount=" + amount +
                "}";
    }
}
